package concurrent.mthread.executors;

import java.util.List;
import java.util.concurrent.AbstractExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * 简单的线程池实现类
 *
 * @author scylla
 * @version V1.0
 * @project echo-java-base
 * @title 简单的线程池实现类
 * @package concurrent.mthread.executors
 * @since 2023/1/10 9:30 上午
 */
public class SimpleExecutorService extends AbstractExecutorService {

    @Override
    public void shutdown() {

    }

    @Override
    public List<Runnable> shutdownNow() {
        return null;
    }

    @Override
    public boolean isShutdown() {
        return false;
    }

    @Override
    public boolean isTerminated() {
        return false;
    }

    @Override
    public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException {
        return false;
    }

    @Override
    public void execute(Runnable runnable) {
        new Thread(runnable).start();
    }
}
